﻿CREATE TABLE [dbo].[ProductVariable](
	[ID] [int] NOT NULL,
	[ProductID] [int] NOT NULL,
	[VariableName] [nvarchar](50) NOT NULL,
	[CreateOn] DateTime NULL,
	[CreateBy] INT NULL,
	[CreatedByName] [NVARCHAR](50) NULL,
	[UpdateOn] DateTime NULL,
	[UpdateBy] INT NULL,
	[UpdateByName] [NVARCHAR](50) NULL,
 CONSTRAINT [PK_ProductVariable] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[ProductVariable]  WITH CHECK ADD  CONSTRAINT [FK_ProductVariable_ProductVariable] FOREIGN KEY([ID])
REFERENCES [dbo].[ProductVariable] ([ID])
GO

ALTER TABLE [dbo].[ProductVariable] CHECK CONSTRAINT [FK_ProductVariable_ProductVariable]
GO